function InjectCSS(src)
{
	$("head").createAppend('link',
	{
		'rel' : 'stylesheet',
		'type' : 'text/css',
		'href' : src
	});
}

function Initialize()
{
	
	InjectCSS("css.css");
	
	InjectScript('js/gears_init.js', InitializationCompleted);
	InjectScript('js/RND.js', InitializationCompleted);
	InjectScript('js/Controller.js', InitializationCompleted);
	InjectScript('js/Model.js', InitializationCompleted);
	InjectScript('js/View.js', InitializationCompleted);
	InjectScript('js/jquery.jlinq.1-3-1.js', InitializationCompleted);
	
}

function InitializationCompleted()
{
	
	injectedScriptCount--;
	if (injectedScriptCount == 0)
	{
		//alert("done")
		Controller.Init();
		Controller.PerformCommand(this, "show:DIV[id=d1]:page:p1:xxxx");
		

	}
}